﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="WebApplication.admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理登录</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="admin/style.css" />
<style type="text/css">
body, input { background-color:#E2ECF8; color: #28529D; font-family: 'Microsoft YaHei', Verdana; }
#login_panel { height: 275px; width: 440px; margin: -138px 0 0 -220px; position: absolute; left: 50%; top: 40%; background: url(images/login.jpg); }
#login_panel h2 { display: block; margin-top: 12px; margin-left: 80px; }
#login_panel img { }
#sign_form { margin:80px 30px 0 120px; }
#sign_form input { background:transparent; border:1px solid #6ABAD9; font-family:"Courier New"!important; height: 18px; }
.no-ime { ime-mode: disabled; }
</style>
<script type="text/javascript" src="scripts/script.js"></script>
<script type="text/javascript">
    function check(form) {
        return $A(form.elements).every(function (e, i, all) { if ((e.value = e.value.trim()) == '') { all[i].select(); return false; } return true })
    }
    function refresh() {
        $('vimg').show('').src = 'validate.ashx?' + Math.random();
        $('safecode').select();
    }
    window.ready("$('loginname').select()");
</script>
</head>
<body>
<div id="login_panel">
  <h2>管理登录</h2>
  <form method="post" action="admin.aspx" class="form" id="sign_form" onsubmit="return check(this);" autocomplete="off">
    <div class="item">
      <label for="loginname">登录名:</label>
      <p>
        <input name="loginname" id="loginname" size="18" maxlength="18" tabindex="1" />
      </p>
    </div>
    <div class="item">
      <label for="passport">密　码:</label>
      <p>
        <input name="passport" type="password" id="passport" size="18" maxlength="18" tabindex="2" />
      </p>
    </div>
    <div class="item">
      <label for="safecode">验证码:</label>
      <p>
        <input name="safecode" onfocus="refresh()" class="no-ime" id="safecode" size="6" maxlength="5" tabindex="3" />
        <a href="javascript:refresh();" title="点击刷新验证码"><img alt="" src="#" style="display:none;" align="absmiddle" id="vimg" /></a></p>
    </div>
    <div class="item">
      <label>&nbsp;</label>
      <p>
        <input type="image" style="border-style:none; height: 22px;" value="登录" src="images/login_btn.jpg" />
      </p>
    </div>
  </form>
</div>
</body>
</html>

